package me.whf.dao.factory;

import me.whf.dao.AccountDAO;
import me.whf.dao.EmployeeDAO;
import me.whf.dao.LoggerDAO;
import me.whf.util.Utils;

public abstract class DAOFactory {

	public static DAOFactory getDAOFactory() {
		switch (Utils.storage) {
		case FILE:
			return new FileDAOFactory();
		case DATABASE:
			return new DatabaseDAOFactory();
		default:
			return null;
		}
	}
	
	public abstract AccountDAO getAccountDAO();
	public abstract EmployeeDAO getEmployeeDAO();
	public abstract LoggerDAO getLoggerDAO();
}
